// pages/demo04/demo04.js
Page({

    data:{
        tabs:[
            {
                id:0,
                name:"咨询",
                isActive:false
            },
            {
                id:1,
                name:"视频",
                isActive:true
            },
            {
                id:2,
                name:"图片",
                isActive:false
            },
            {
                id:3,
                name:"贴吧",
                isActive:false
            },

        ],
        index:1

    },
    hanldeInput: function (e) {
        console.log('文本框有内容输入');
    },
    handleChangeIndex:function(e){
        console.log22(111111);
        let {index}  = e.detail;
        this.setData({
            index
        })
    }


})